<!DOCTYPE html>
<html lang="en">

<!-- Head tag -->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="keyword"  content="">
    <link rel="shortcut icon" href="/img/ironman-draw.png">
    <!-- Place this tag in your head or just before your close body tag. -->
    <script async defer src="https://buttons.github.io/buttons.js"></script>
    <title>
        
          赵先生
        
    </title>

    <link rel="canonical" href="http://zqqpluto.xyz/">

    <!-- Bootstrap Core CSS -->
    <link rel="stylesheet" href="/css/bootstrap.min.css">

    <!-- Custom CSS --> 
    <link rel="stylesheet" href="/css/beantech.min.css">

    <link rel="stylesheet" href="/css/donate.css">
    
    <!-- Pygments Highlight CSS -->
    <link rel="stylesheet" href="/css/highlight.css">

    <link rel="stylesheet" href="/css/widget.css">

    <link rel="stylesheet" href="/css/rocket.css">

    <link rel="stylesheet" href="/css/signature.css">

    <link rel="stylesheet" href="/css/toc.css">

    <!-- Custom Fonts -->
    <!-- <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> -->
    <!-- Hux change font-awesome CDN to qiniu -->
    <link href="https://cdn.staticfile.org/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">


    <!-- Hux Delete, sad but pending in China
    <link href='http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/
    css'>
    -->


    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- ga & ba script hoook -->
    <script></script>
</head>


<!-- hack iOS CSS :active style -->
<body ontouchstart="">
	<!-- Modified by Yu-Hsuan Yen -->
<!-- Post Header -->
<style type="text/css">
    header.intro-header {
        background-image: url('/img/header_img/home.jpg')
                /*config*/
                
    }

    
</style>

<header class="intro-header">
    <!-- Signature -->
    <div id="signature">
        <div class="container">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                    
                    <div class="site-heading">
                        <h1>赵先生</h1>
                        <!--<hr class="small">-->
                        <span class="subheading">曾经沧海难为水 ，除却巫山不是云</span>

                    </div>
                    


                </div>

            </div>
        </div>
    </div>
</header>
	
    <!-- Navigation -->
<nav class="navbar navbar-default navbar-custom navbar-fixed-top">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header page-scroll">
            <button type="button" class="navbar-toggle">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">赵先生</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <!-- Known Issue, found by Hux:
            <nav>'s height woule be hold on by its content.
            so, when navbar scale out, the <nav> will cover tags.
            also mask any touch event of tags, unfortunately.
        -->
        <div id="huxblog_navbar">
            <div class="navbar-collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a href="/">Home</a>
                    </li>

                    

                        
                    

                        
                        <li>
                            <a href="/archive/">Archives</a>
                        </li>
                        
                    

                        
                        <li>
                            <a href="/about/">About</a>
                        </li>
                        
                    

                        
                        <li>
                            <a href="/tags/">Tags</a>
                        </li>
                        
                    
                    
                </ul>
            </div>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container -->
</nav>
<script>
    // Drop Bootstarp low-performance Navbar
    // Use customize navbar with high-quality material design animation
    // in high-perf jank-free CSS3 implementation
    var $body   = document.body;
    var $toggle = document.querySelector('.navbar-toggle');
    var $navbar = document.querySelector('#huxblog_navbar');
    var $collapse = document.querySelector('.navbar-collapse');

    $toggle.addEventListener('click', handleMagic)
    function handleMagic(e){
        if ($navbar.className.indexOf('in') > 0) {
        // CLOSE
            $navbar.className = " ";
            // wait until animation end.
            setTimeout(function(){
                // prevent frequently toggle
                if($navbar.className.indexOf('in') < 0) {
                    $collapse.style.height = "0px"
                }
            },400)
        }else{
        // OPEN
            $collapse.style.height = "auto"
            $navbar.className += " in";
        }
    }
</script>


    <!-- Main Content -->
    <!-- Main Content -->
<div class="container">
    <div class="row">
        

<!-- USE SIDEBAR -->
    <!-- Post Container -->
            <div class="
                col-lg-8 col-lg-offset-1
                col-md-8 col-md-offset-1
                col-sm-12
                col-xs-12
                post-container
            ">
            
                <!-- Main Content -->


<div class="post-preview">

    <a href="/article/SpringBoot入门/">
        <h2 class="post-title">
            
                <i class="fa fa-thumb-tack" style="color:#F4711F" ></i>
                <!-- <i class="fa fa-thumb-tack" style="color:#F89E8C" ></i> -->
                <!-- <i class="fa fa-thumb-tack" style="color:#1CB7ED" ></i> -->
                <font color=#F4711F>置顶</font>
                <!-- <font color=#F89E8C>置顶</font>  -->
                <!-- <font color=#1CB7ED>置顶</font>  -->
                                 
            Spring Boot入门
        </h2>
        <h3 class="post-subtitle">
            SpringBoot学习
        </h3>
        <div class="post-content-preview">
            在学习Spring Boot之前，建议大家先学习SSM框架，了解并掌握Spring和SpringMVC。
一.Spring Boot简介
Spring Boot是由Pivotal团队提供的全新框架，其设计目的是用来简化新Spring应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置，从而使开发人员不再需要定义样板化的配置。
特性：



创建独立的Spring应用程序


直接嵌入......
        </div>
    </a>
    
        <p class="post-meta" style="margin: 10px 0;">
            Posted by 赵先生 on
            2019-08-25
        </p>
        <div class="tags">
            
              <a href="/tags/#Spring Boot" title="Spring Boot">Spring Boot</a>
            
        </div>
    

</div>
<hr>

<div class="post-preview">

    <a href="/article/spring-SSM/">
        <h2 class="post-title">
            
                <i class="fa fa-thumb-tack" style="color:#F4711F" ></i>
                <!-- <i class="fa fa-thumb-tack" style="color:#F89E8C" ></i> -->
                <!-- <i class="fa fa-thumb-tack" style="color:#1CB7ED" ></i> -->
                <font color=#F4711F>置顶</font>
                <!-- <font color=#F89E8C>置顶</font>  -->
                <!-- <font color=#1CB7ED>置顶</font>  -->
                                 
            SSM框架学习（一）————SSM框架简介
        </h2>
        <h3 class="post-subtitle">
            SSM框架简介
        </h3>
        <div class="post-content-preview">
            
java这是SSM框架简介

一.SSM 框架简介
SSM（Spring+SpringMVC+MyBatis）框架由 Spring、MyBatis 两个框架整合完成（SpringMVC 是 Spring 中的部分内容）。采用标准 MVC 模式。

spring MVC：负责请求的转发和视图管理。
spring ：实现业务对象管理。
mybatis ：作为数据对象的持久化引擎。

1.1 S......
        </div>
    </a>
    
        <p class="post-meta" style="margin: 10px 0;">
            Posted by 赵先生 on
            2019-08-16
        </p>
        <div class="tags">
            
              <a href="/tags/#spring" title="spring">spring</a>
            
              <a href="/tags/#SSM" title="SSM">SSM</a>
            
        </div>
    

</div>
<hr>

<div class="post-preview">

    <a href="/article/爬取一周天气预报/">
        <h2 class="post-title">
            
                <i class="fa fa-thumb-tack" style="color:#F4711F" ></i>
                <!-- <i class="fa fa-thumb-tack" style="color:#F89E8C" ></i> -->
                <!-- <i class="fa fa-thumb-tack" style="color:#1CB7ED" ></i> -->
                <font color=#F4711F>置顶</font>
                <!-- <font color=#F89E8C>置顶</font>  -->
                <!-- <font color=#1CB7ED>置顶</font>  -->
                                 
            Python爬虫入门实战--------一周天气预报爬取
        </h2>
        <h3 class="post-subtitle">
            spring学习
        </h3>
        <div class="post-content-preview">
            
最近学校刚开始开设爬虫课，我也刚刚如入门，尝试写了一个爬去成都市的一周的天气预报。


一、软件和库的准备：


python环境安装配置：安装python所需要的环境（此处就不详细的进行说明了，百度查询），最好是使用python3.x版本，虽然现在大部分公司的项目都还是在使用2.x版本，但是3.x才是目前主流的，以后的项目肯定使用3.x居多。


编辑器：选择一个合适的编辑器，pytho......
        </div>
    </a>
    
        <p class="post-meta" style="margin: 10px 0;">
            Posted by 赵先生 on
            2019-08-16
        </p>
        <div class="tags">
            
              <a href="/tags/#python" title="python">python</a>
            
              <a href="/tags/#爬虫" title="爬虫">爬虫</a>
            
        </div>
    

</div>
<hr>

<div class="post-preview">

    <a href="/article/手动安装MySQL和彻底删除MySQL/">
        <h2 class="post-title">
            
                <i class="fa fa-thumb-tack" style="color:#F4711F" ></i>
                <!-- <i class="fa fa-thumb-tack" style="color:#F89E8C" ></i> -->
                <!-- <i class="fa fa-thumb-tack" style="color:#1CB7ED" ></i> -->
                <font color=#F4711F>置顶</font>
                <!-- <font color=#F89E8C>置顶</font>  -->
                <!-- <font color=#1CB7ED>置顶</font>  -->
                                 
            手动安装MySQL和彻底删除MySQL
        </h2>
        <h3 class="post-subtitle">
            mysql手动安装
        </h3>
        <div class="post-content-preview">
            一、手动安装mysql（5.6版本）
1.下载压缩包，在官网下载。官网MySQL链接
也可以使用我分享的网盘链接（5.6.17）
链接：https://pan.baidu.com/s/1W4v5MafWiEze8S1IO0ishQ
提取码：xc2y
复制这段内容后打开百度网盘手机App，操作更方便哦
2.解压后打开里面的my-default.ini配置文件

3.将文件basedir和dat......
        </div>
    </a>
    
        <p class="post-meta" style="margin: 10px 0;">
            Posted by 赵先生 on
            2019-08-16
        </p>
        <div class="tags">
            
              <a href="/tags/#spring" title="spring">spring</a>
            
              <a href="/tags/#SSM" title="SSM">SSM</a>
            
              <a href="/tags/#java" title="java">java</a>
            
        </div>
    

</div>
<hr>

<div class="post-preview">

    <a href="/article/pycharm安装/">
        <h2 class="post-title">
            
                <i class="fa fa-thumb-tack" style="color:#F4711F" ></i>
                <!-- <i class="fa fa-thumb-tack" style="color:#F89E8C" ></i> -->
                <!-- <i class="fa fa-thumb-tack" style="color:#1CB7ED" ></i> -->
                <font color=#F4711F>置顶</font>
                <!-- <font color=#F89E8C>置顶</font>  -->
                <!-- <font color=#1CB7ED>置顶</font>  -->
                                 
            pycharm安装教程
        </h2>
        <h3 class="post-subtitle">
            pycharm安装
        </h3>
        <div class="post-content-preview">
            
1. 下载pycharm安装包
先下载好pycharm安装包。
链接：https://pan.baidu.com/s/1wxPhMVgx4Fp-2uOhJ0K0Jg
提取码：ivug

2. 安装pycharm
直接双击安装包


然后直接下一步，知道install，点击install安装，等待安装完成：

3. 破解pycharm
将JetbrainsCrack-2.9-release-......
        </div>
    </a>
    
        <p class="post-meta" style="margin: 10px 0;">
            Posted by 赵先生 on
            2019-10-14
        </p>
        <div class="tags">
            
              <a href="/tags/#python" title="python">python</a>
            
        </div>
    

</div>
<hr>

<div class="post-preview">

    <a href="/article/hexo评论/">
        <h2 class="post-title">
            
                <i class="fa fa-thumb-tack" style="color:#F4711F" ></i>
                <!-- <i class="fa fa-thumb-tack" style="color:#F89E8C" ></i> -->
                <!-- <i class="fa fa-thumb-tack" style="color:#1CB7ED" ></i> -->
                <font color=#F4711F>置顶</font>
                <!-- <font color=#F89E8C>置顶</font>  -->
                <!-- <font color=#1CB7ED>置顶</font>  -->
                                 
            hexo+BeanTexh+Valine实现评论功能
        </h2>
        <h3 class="post-subtitle">
            Valine留言
        </h3>
        <div class="post-content-preview">
            
基于hexo的主题BeanTech的Valine评论功能实现。



Leancloud配置
首先访问Leancloud官网https://leancloud.cn/有Github账号的小伙伴可以用Github账号进行登陆然后绑定邮箱就可以啦！
进入之后点击创建应用



进入应用-&gt;设置-&gt;应用key



下载Valine.min.js
首先下载最新的Valine.min.......
        </div>
    </a>
    
        <p class="post-meta" style="margin: 10px 0;">
            Posted by 赵先生 on
            2019-08-17
        </p>
        <div class="tags">
            
              <a href="/tags/#hexo" title="hexo">hexo</a>
            
              <a href="/tags/#Valine" title="Valine">Valine</a>
            
              <a href="/tags/#BeanTech" title="BeanTech">BeanTech</a>
            
        </div>
    

</div>
<hr>

<div class="post-preview">

    <a href="/article/hexo-BeanTech/">
        <h2 class="post-title">
            
                <i class="fa fa-thumb-tack" style="color:#F4711F" ></i>
                <!-- <i class="fa fa-thumb-tack" style="color:#F89E8C" ></i> -->
                <!-- <i class="fa fa-thumb-tack" style="color:#1CB7ED" ></i> -->
                <font color=#F4711F>置顶</font>
                <!-- <font color=#F89E8C>置顶</font>  -->
                <!-- <font color=#1CB7ED>置顶</font>  -->
                                 
            hexo+BeanTech主题增加站点访问量和文章访问量
        </h2>
        <h3 class="post-subtitle">
            BeanTech添加访问量
        </h3>
        <div class="post-content-preview">
            

配置是否开启不蒜子访问量统计功能
在themes/yilia/_config.yml添加属性
123# 是否开启访问量统计功能(不蒜子)busuanzi: enable: true


引入不蒜子并添加站点访问量
在themes/yilia/layout/_partial/footer.ejs合适位置添加如下代码
1234567&lt;% if (theme.busuanzi &amp;......
        </div>
    </a>
    
        <p class="post-meta" style="margin: 10px 0;">
            Posted by 赵先生 on
            2019-08-17
        </p>
        <div class="tags">
            
              <a href="/tags/#hexo" title="hexo">hexo</a>
            
        </div>
    

</div>
<hr>

<div class="post-preview">

    <a href="/article/hexo实现图片单击放大缩小/">
        <h2 class="post-title">
                                 
            hexo实现图片单击放大缩小
        </h2>
        <h3 class="post-subtitle">
            hexo主题修改
        </h3>
        <div class="post-content-preview">
            对应不同的主题需要修改一下东西，我的主题是BeanTech。
在合适的位置添加一下js代码，我是在themes\BeanTech\layout\_partial添加的。
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606......
        </div>
    </a>
    
        <p class="post-meta" style="margin: 10px 0;">
            Posted by 赵先生 on
            2019-08-25
        </p>
        <div class="tags">
            
              <a href="/tags/#hexo" title="hexo">hexo</a>
            
        </div>
    

</div>
<hr>

<div class="post-preview">

    <a href="/article/spring-SpringJDBC/">
        <h2 class="post-title">
                                 
            SSM框架学习（四）——SpringJDBC
        </h2>
        <h3 class="post-subtitle">
            SSM框架简介
        </h3>
        <div class="post-content-preview">
            一.Spring对jdbc异常的处理
Spring采用某种特定的异常，如：SQLException，统一转换成自己的异常类型，这些异常以DataAccessException作为父类，他们封装了原始的异常对象，不会出现丢失原始错误信息的情况。并且DataAccessException是继承自RuntimeException的，是非检查异常，故不需要在代码中进行处理，我们可以使用拦截器在最外层......
        </div>
    </a>
    
        <p class="post-meta" style="margin: 10px 0;">
            Posted by 赵先生 on
            2019-08-16
        </p>
        <div class="tags">
            
              <a href="/tags/#spring" title="spring">spring</a>
            
              <a href="/tags/#SSM" title="SSM">SSM</a>
            
              <a href="/tags/#springJDBC" title="springJDBC">springJDBC</a>
            
        </div>
    

</div>
<hr>

<div class="post-preview">

    <a href="/article/python爬虫入门实战之爬取美国体育网篮球比赛数据（selenium+xpath）/">
        <h2 class="post-title">
                                 
            python爬虫入门实战之爬取美国体育网篮球比赛数据（selenium+xpath）
        </h2>
        <h3 class="post-subtitle">
            python爬虫
        </h3>
        <div class="post-content-preview">
            一、观察url及要爬取的数据



URL后面跟着a-index.html，我们再点开几个几面，发现它的链接后缀都是“小写字母-index.html”的格式结尾的，随意我们姜后缀链接进行构造拼接，将最终的URL拼接好后存储到一个容器。
接下来我们对数据分析，经过观察后发现所有的数据我们都是需要的，没有不需要的数据。（如果有无用的数，那么我们在爬取数据的时候就不爬取这一项）
在爬取的过程中发现......
        </div>
    </a>
    
        <p class="post-meta" style="margin: 10px 0;">
            Posted by 赵先生 on
            2019-08-16
        </p>
        <div class="tags">
            
              <a href="/tags/#python" title="python">python</a>
            
              <a href="/tags/#xpath" title="xpath">xpath</a>
            
              <a href="/tags/#selenium" title="selenium">selenium</a>
            
              <a href="/tags/#爬虫" title="爬虫">爬虫</a>
            
        </div>
    

</div>
<hr>



<!-- Pager -->

<ul class="pager">
    
    
        <li class="next">
            <a href="/page/2/">Older Posts &rarr;</a>
        </li>
    
</ul>



                <br>

                <!-- require APlayer -->
                

                <!-- 如果开启评论功能 -->
                
            </div>

          <!-- Sidebar Container -->
<div class="
    col-lg-3 col-lg-offset-0
    col-md-3 col-md-offset-0
    col-sm-12
    col-xs-12
    sidebar-container
">
    
        <!-- Featured Tags -->

<section>
    <!-- no hr -->
    <h5><a href="/tags/">FEATURED TAGS</a></h5>
    <div class="tags">
        
            
            <a href="/tags/#hexo" title="hexo" rel="3">hexo</a>
            
        
            
            <a href="/tags/#python" title="python" rel="4">python</a>
            
        
            
        
            
        
            
        
            
        
            
            <a href="/tags/#爬虫" title="爬虫" rel="2">爬虫</a>
            
        
            
            <a href="/tags/#spring" title="spring" rel="6">spring</a>
            
        
            
            <a href="/tags/#SSM" title="SSM" rel="7">SSM</a>
            
        
            
        
            
            <a href="/tags/#java" title="java" rel="4">java</a>
            
        
            
        
            
        
            
        
    </div>
</section>

        <hr>
    
        <!-- Short About -->
<section class="visible-md visible-lg">
    <h5><a href="/about/">ABOUT ME</a></h5>
    <div class="short-about">

        
            <img id = "avatar_pic" src="/img/avatar/Snipaste_2019-08-16_17-31-36.png" />
        

        
            <p>You are my girle....</p>
        

        <!-- SNS Link -->
        <ul class="list-inline">
            
            
            

            

            

            
                <li>
                    <a target="_blank"  href="https://github.com/zqqpluto">
                        <span class="fa-stack fa-lg">
                            <i class="fa fa-circle fa-stack-2x"></i>
                            <i class="fa fa-github fa-stack-1x fa-inverse"></i>
                        </span>
                    </a>
                </li>
            
            
            
            
        </ul>
    </div>
</section>

        <hr>
    
        
  <h5>RECENT POSTS</h3>
  <div class="widget">
    <ul>
      
        <li>
          <a href="/article/pycharm安装/">pycharm安装教程</a>
        </li>
      
        <li>
          <a href="/article/hexo实现图片单击放大缩小/">hexo实现图片单击放大缩小</a>
        </li>
      
        <li>
          <a href="/article/SpringBoot入门/">Spring Boot入门</a>
        </li>
      
        <li>
          <a href="/article/hexo评论/">hexo+BeanTexh+Valine实现评论功能</a>
        </li>
      
        <li>
          <a href="/article/hexo-BeanTech/">hexo+BeanTech主题增加站点访问量和文章访问量</a>
        </li>
      
    </ul>
  </div>

        <hr>
    
        <!-- Friends Blog -->

<h5>FRIENDS</h5>
<ul class="list-inline">

    
        <li><a href="https://blog.csdn.net/qq_40705355" target="_blank">CSDN Blog 赵先生</a></li>
    
        <li><a href="https://github.com/zqqpluto" target="_blank">Github 赵先生</a></li>
    
</ul>

        <hr>
    
        
    <h5>ARCHIVES</h5>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/10/">October 2019</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/08/">August 2019</a><span class="archive-list-count">14</span></li></ul>
    </div>

        <hr>
    
</div>

        
    </div>
</div>


    <!-- Footer -->
    <!-- Footer -->
<footer>
    <div class="container">
        <div class="row">


            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">



                



                <ul class="list-inline text-center">
                    
                    
                    

                    

                    

                    
                    <li>
                        <a target="_blank" href="https://github.com/zqqpluto">
                            <span class="fa-stack fa-lg">
                                <i class="fa fa-circle fa-stack-2x"></i>
                                <i class="fa fa-github fa-stack-1x fa-inverse"></i>
                            </span>
                        </a>
                    </li>
                    

                    

                </ul>


                <p class="copyright text-muted">

                    
                    <!-- 不蒜子统计 -->
                    <span id="busuanzi_container_site_uv" style='display:none'>
                        本站访客数<span id="busuanzi_value_site_uv"></span>人
                    </span>
                    <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
                    

                    Copyright &copy; 赵先生 2019
                    <br>
                    Theme by <a href="http://beantech.org">BeanTech</a>
                    <span style="display: inline-block; margin: 0 5px;">
                        <i class="fa fa-heart"></i>
                    </span>
                    re-Ported by <a href="https://huweihuang.github.io/">赵先生</a> |
                    <iframe style="margin-left: 2px; margin-bottom:-5px;" frameborder="0" scrolling="0" width="91px"
                        height="20px"
                        src="https://ghbtns.com/github-btn.html?user=huweihuang&repo=hexo-theme-huweihuang&type=star&count=true">
                    </iframe>
                </p>
            </div>
        </div>
    </div>
</footer>

<!-- jQuery -->
<script src="/js/jquery.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="/js/bootstrap.min.js"></script>

<!-- Custom Theme JavaScript -->
<script src="/js/hux-blog.min.js"></script>


<!-- async load function -->
<script>
    function async(u, c) {
        var d = document, t = 'script',
            o = d.createElement(t),
            s = d.getElementsByTagName(t)[0];
        o.src = u;
        if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); }
        s.parentNode.insertBefore(o, s);
    }
</script>

<!-- 
     Because of the native support for backtick-style fenced code blocks 
     right within the Markdown is landed in Github Pages, 
     From V1.6, There is no need for Highlight.js, 
     so Huxblog drops it officially.

     - https://github.com/blog/2100-github-pages-now-faster-and-simpler-with-jekyll-3-0  
     - https://help.github.com/articles/creating-and-highlighting-code-blocks/    
-->
<!--
    <script>
        async("http://cdn.bootcss.com/highlight.js/8.6/highlight.min.js", function(){
            hljs.initHighlightingOnLoad();
        })
    </script>
    <link href="http://cdn.bootcss.com/highlight.js/8.6/styles/github.min.css" rel="stylesheet">
-->


<!-- jquery.tagcloud.js -->
<script>

    // only load tagcloud.js in tag.html
    if ($('#tag_cloud').length !== 0) {
        async("http://zqqpluto.xyz/js/jquery.tagcloud.js", function () {
            $.fn.tagcloud.defaults = {
                //size: {start: 1, end: 1, unit: 'em'},
                color: { start: '#bbbbee', end: '#0085a1' },
            };
            $('#tag_cloud a').tagcloud();
        })
    }
</script>


<!-- <script>

//----自定义js----------------
function createImgEventFullScreen() {
  var imgs = $(".post-container").find("img");
  console.log(imgs);
  for(var i = 0;i < imgs.length;i++) {
    // $(imgs[i]).click(createCover(imgs[i]));
    imgs[i].onclick= function(e) {
      var src = e.srcElement.currentSrc;
      createCover(src)
    }
  }
  function createCover (src) {
    console.log(src);
    var cover = $("<div id='fullScreenCover' class='zhao-cover-img-container'><img class='zhao-cover-img' src='"+src+"'/></div>");
    $("#fullScreenCover").remove();
    $("body").append(cover);
    $("body").addClass("zhao-no-scroll");
    $("#fullScreenCover").click(function(){
      $("#fullScreenCover").remove();
      $("body").removeClass("zhao-no-scroll");
    })
  }
}
setTimeout(function(){
  createImgEventFullScreen();
},1000)


</script> -->


<!--fastClick.js -->
<script>
    async("https://cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js", function () {
        var $nav = document.querySelector("nav");
        if ($nav) FastClick.attach($nav);
    })
</script>


<!-- Google Analytics -->


<script>
    // dynamic User by Hux
    var _gaId = 'UA-XXXXXXXX-X';
    var _gaDomain = 'yoursite';

    // Originial
    (function (i, s, o, g, r, a, m) {
        i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
            (i[r].q = i[r].q || []).push(arguments)
        }, i[r].l = 1 * new Date(); a = s.createElement(o),
            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
    })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

    ga('create', _gaId, _gaDomain);
    ga('send', 'pageview');
</script>




<!-- Baidu Tongji -->

<script>
    // dynamic User by Hux
    var _baId = 'xxx';

    // Originial
    var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?" + _baId;
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>



<script>
    function createImgEventFullScreen() {
        var imgs = $(".post-container").find("img");
        console.log(imgs);
        for (var i = 0; i < imgs.length; i++) {
            // $(imgs[i]).click(createCover(imgs[i]));
            imgs[i].onclick = function (e) {
                var src = e.srcElement.currentSrc;
                var _this = $(this);
                console.log(_this);
                createCover(src,_this);
            }
        }
        function createCover(src,_this) {
            console.log(_this);
            console.log(src);
            var cover = $("<div id='outerDiv'  style='position:fixed;top:0;left:0;background:rgba(0,0,0,0.7);z-index:5;width:100%;height:100%;display:none;'><div id='innerDiv' style='position:absolute;'><img  id='bigImg' style='border:5px solid #fff;' src=''/></div></div>");
            $("#outerDiv").remove();
            $("body").append(cover);
            imgShow("#outerDiv", "#innerDiv", "#bigImg", _this,src);

        }
    }
    function imgShow(outerDiv, innerDiv, bigImg, _this,src) {
        //var src = _this.attr("src"); //获取当前点击的common-img元素中的src属性
        $(bigImg).attr("src", src); //设置#bigImg元素的src属性

        /*获取当前点击图片的真实大小，并显示弹出层及大图*/
        $("<img/>").attr("src", src).load(function () {
            var windowW = $(window).width(); //获取当前窗口宽度
            var windowH = $(window).height(); //获取当前窗口高度
            var realWidth = this.width; //获取图片真实宽度
            var realHeight = this.height; //获取图片真实高度
            var imgWidth, imgHeight;
            var scale = 0.8; //缩放尺寸，当图片真实宽度和高度大于窗口宽度和高度时进行缩放

            if (realHeight > windowH * scale) { //判断图片高度
                imgHeight = windowH * scale; //如大于窗口高度，图片高度进行缩放
                imgWidth = imgHeight / realHeight * realWidth; //等比例缩放宽度
                if (imgWidth > windowW * scale) { //如宽度仍大于窗口宽度
                    imgWidth = windowW * scale; //再对宽度进行缩放
                }
            } else if (realWidth > windowW * scale) { //如图片高度合适，判断图片宽度
                imgWidth = windowW * scale; //如大于窗口宽度，图片宽度进行缩放
                imgHeight = imgWidth / realWidth * realHeight; //等比例缩放高度
            } else { //如果图片真实高度和宽度都符合要求，高宽不变
                imgWidth = realWidth;
                imgHeight = realHeight;
            }
            $(bigImg).css("width", imgWidth); //以最终的宽度对图片缩放

            var w = (windowW - imgWidth) / 2; //计算图片与窗口左边距
            var h = (windowH - imgHeight) / 2; //计算图片与窗口上边距
            $(innerDiv).css({ "top": h, "left": w }); //设置#innerDiv的top和left属性
            //console.log('****')
            $(outerDiv).fadeIn("fast"); //淡入显示#outerDiv
        });

        $(outerDiv).click(function () { //再次点击淡出消失弹出层
            $(this).fadeOut("fast");
        });
    }
    setTimeout(function () {
        createImgEventFullScreen();
    }, 1000)


</script>


	<a id="rocket" href="#top" class=""></a>
	<script type="text/javascript" src="/js/totop.js?v=1.0.0" async=""></script>
    <script type="text/javascript" src="/js/toc.js?v=1.0.0" async=""></script>
<!-- Image to hack wechat -->
<img src="http://zqqpluto.xyz/img/icon_wechat.png" width="0" height="0" />
<!-- Migrate from head to bottom, no longer block render and still work -->

<!-- 代码块复制功能 -->
<script type="text/javascript" src="/js/clipboard.min.js"></script>  
<script type="text/javascript" src="/js/clipboard-use.js"></script>
</body>

</html>
